const Mock = require("mockjs");

Mock.mock(/userdata\/text/, 'post', () => {
  return user
})
// 模拟数据如下
let user = Mock.mock(
  [
    { phonetext: '18815675644', password: 'lsg201508', name: '李赛广', id: '1024001', img: '/L.jpg' },
    { phonetext: '19173604711', password: '011024pjh...', name: '裴佳慧', id: '1024002', img: '/P.jpg' },
    { phonetext: '18815675644', password: 'lsg666', name: '宋一鲤', id: '1024003', img: '/w.jpg' },
    { phonetext: '000000', password: '000000', name: '李赛广', id: '1024004', img: '/R-Cimg.jpg' }
  ]
)